package cn.com.victorysoft.ylgl.service.fracturingpressure.domain;

import cn.com.victorysoft.ylgl.service.commons.domain.BaseEntity;
import cn.com.victorysoft.ylgl.service.commons.json.DateToISODateTimeSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class FractureMonitoring extends BaseEntity {
    private String wellId;

    @DateTimeFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date survDate;

    private String survType;

    private String formationName;

    private String zone;

    private BigDecimal crackHeight;

    private BigDecimal crackWidth;

    private BigDecimal crackLength;

    private BigDecimal crackDirection;

    private String originalDataFile;

    private String originalDataFileId;

    private String remarks;

    public String getWellId() {
        return wellId;
    }

    public void setWellId(String wellId) {
        this.wellId = wellId == null ? null : wellId.trim();
    }

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd")
    public Date getSurvDate() {
        return survDate;
    }

    @JsonSerialize(using = DateToISODateTimeSerializer.class)
    public void setSurvDate(Date survDate) {
        this.survDate = survDate;
    }

    public String getSurvType() {
        return survType;
    }

    public void setSurvType(String survType) {
        this.survType = survType;
    }

    public String getFormationName() {
        return formationName;
    }

    public void setFormationName(String formationName) {
        this.formationName = formationName;
    }

    public String getZone() {
        return zone;
    }

    public void setZone(String zone) {
        this.zone = zone;
    }

    public BigDecimal getCrackHeight() {
        return crackHeight;
    }

    public void setCrackHeight(BigDecimal crackHeight) {
        this.crackHeight = crackHeight;
    }

    public BigDecimal getCrackWidth() {
        return crackWidth;
    }

    public void setCrackWidth(BigDecimal crackWidth) {
        this.crackWidth = crackWidth;
    }

    public BigDecimal getCrackLength() {
        return crackLength;
    }

    public void setCrackLength(BigDecimal crackLength) {
        this.crackLength = crackLength;
    }

    public BigDecimal getCrackDirection() {
        return crackDirection;
    }

    public void setCrackDirection(BigDecimal crackDirection) {
        this.crackDirection = crackDirection;
    }

    public String getOriginalDataFile() {
        return originalDataFile;
    }

    public void setOriginalDataFile(String originalDataFile) {
        this.originalDataFile = originalDataFile;
    }

    public String getOriginalDataFileId() {
        return originalDataFileId;
    }

    public void setOriginalDataFileId(String originalDataFileId) {
        this.originalDataFileId = originalDataFileId == null ? null : originalDataFileId.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

}